<?php
class BuyaccountController extends BuynodeController {
	
	public function finance() {
		$rs = self::getBuyAccountService ()->getAccountByUid ( $_GET ['p'], $this->_user_global ['uid'] );
		$this->view ()->assign ( 'account', $rs ['account'] );
		$this->view ()->assign ( 'num', $rs ['page'] );
		$this->view ()->display ( 'file:buy/finance.tpl' );
	}
	
	public function account() {
		$rs = self::getBuyAccountService ()->getAccountByStatus ( $_GET ['p'], $_GET ['status'] );
		$this->view ()->assign ( 'account', $rs ['account'] );
		$this->view ()->assign ( 'num', $rs ['page'] );
		$this->view ()->display ( 'file:buy/account.tpl' );
	}
	
	public static function getBuyAccountService() {
		return new BuyAccountService ();
	}
}